package com.hbnu.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2023-05-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("paperproject")
public class Paperproject implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键 项目关联编号
     */
    @ApiModelProperty(value = "主键")
    @TableId(value = "PaperProjectID", type = IdType.ASSIGN_ID)
    private String PaperProjectID;

    /**
     * 论文编号
     */
    @ApiModelProperty(value = "论文编号")
    @TableField("PaperID")
    private String PaperID;

    /**
     * 关联项目编号
     */
    @ApiModelProperty(value = "项目编号")
    @TableField("ProjectID")
    private String ProjectID;

    /**
     * 项目名称
     */
    @ApiModelProperty(value = "项目名称")
    @TableField("projectName")
    private String projectName;

    /**
     * 项目负责人
     */
    @ApiModelProperty(value = "项目负责人")
    @TableField("head")
    private String head;

    /**
     * 署名单位
     */
    @ApiModelProperty(value = "署名单位")
    @TableField("signedUnit")
    private String signedUnit;

    /**
     * 开始日期
     */
    @ApiModelProperty(value = "开始日期")
    @TableField("startTime") //fill = FieldFill.INSERT 自动填入
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate startTime;

    /**
     * 结束日期
     */
    @ApiModelProperty(value = "结束日期")
    @TableField("endTime") //fill = FieldFill.INSERT 自动填入
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate endTime;


}
